package com.wang.friend.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.wang.common.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@TableName("tb_user")
public class User extends BaseEntity {

    @Schema(description = "用户id")
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "头像")
    private String headImage;

    @Schema(description = "性别: 1-->男 ; 2-->女")
    private Integer sex;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "验证码")
    private String code;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "微信号")
    private String wechat;

    @Schema(description = "学校")
    private String schoolName;

    @Schema(description = "专业")
    private String majorName;

    @Schema(description = "个人介绍")
    private String introduce;

    @Schema(description = "状态: 0-->拉黑 ; 1-->正常")
    private Integer status;
}